<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Message Post</title>
</head>
<body>
    <form:form method="POST" modelAttribute="message">
        <table>
            <tr>
                <td>Title:</td>
                <td><form:input path="title" /></td>
            </tr>
            <tr>
                <td>Body:</td>
                <td><form:input path="body" /></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="Post" />
                </td>
            </tr>
        </table>
    </form:form>
</body>
</html>